<?php
# 获取配置
namespace app\server;

use Yii;

class Server
{
    static private $err = null;
    static private $system = null;

    public function __construct()
    {

    }

    // 错误信息
    static public function getErr()
    {
        if (self::$err == null) {
            self::$err = Yii::$app->err;
        }
        return self::$err;
    }

    // 配置项
    static public function getSystem()
    {
        if (self::$system == null) {
            self::$system = Yii::$app->system;
        }
        return self::$system;
    }
}